using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasCommitteePosition")]
    public class MasCommitteePosition
    {

        public MasCommitteePosition()
        {
            // Use IcmCommitee
            // remove -> this.DeliveryNoteCommittees = new HashSet<DeliveryNoteCommittee>();
            // remove -> this.MasCommitteeMappings = new HashSet<MasCommitteeMapping>();
            // remove -> this.PrePurchaseRequestCommittees = new HashSet<PrePurchaseRequestCommittee>();

            Committees = new HashSet<Committee>();
        }
    

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ComPosId", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public int ComPosId { get; set; }

		[DataMember, Display(Name = "ComPosName", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public string ComPosName { get; set; }

		[DataMember, Display(Name = "ComPosDescr", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public string ComPosDescr { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "RestoredBy", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public Nullable<int> RestoredBy { get; set; }

		[DataMember, Display(Name = "RestoredWhen", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        public Nullable<System.DateTime> RestoredWhen { get; set; }
    
        [DataMember]
        public virtual ICollection<Committee> Committees { get; set; }

        //[DataMember, Display(Name = "ICollection<icmDeliveryNoteCommittee>", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        //public virtual ICollection<DeliveryNoteCommittee> DeliveryNoteCommittees { get; set; }

        //[DataMember, Display(Name = "ICollection<icmMasCommitteeMapping>", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        //public virtual ICollection<MasCommitteeMapping> MasCommitteeMappings { get; set; }

        //[DataMember, Display(Name = "ICollection<PrePurchaseRequestCommittee>", ResourceType = typeof(Resources.MasCommitteePositionResource))]
        //public virtual ICollection<PrePurchaseRequestCommittee> PrePurchaseRequestCommittees { get; set; }

    }
}